# -*- coding: utf-8 -*-
from openerp.osv import fields,osv


class product_hscode(osv.osv):
    _name = "product.hscode"
    _description = 'Product HSCode and return tax rate'
    _columns = {
        'name': fields.char('Name',size=32, required=True),
        'ret_tax_rate': fields.integer('Export Return Tax Rate(%)'),   
        'export_name': fields.text('报关品名',size=128),
        'request_memo': fields.text('申报要素',size=128), 
    }    
    _sql_constraints = [
        ('name', 'unique(name)', 'HSCode Name must be unique!'),
    ]    